/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Sample UML2 to C++ generation
 *
 * Copyright (c) 2013 Alexander Diemand
 * All rights reserved.
 *
 * Author:     Alexander Diemand
 * Address:    Outerspace
 * Project:    Sample UML2 to C++ generation
 *
 * UML2 to C++ 
 * In easy steps from UML2 modeling to C++ coding.
 * What already works:
 * i)   generation of source and headers for enums and classes
 * ii)  the latter are: datatypes, interfaces and standard classes
 * iii) inherited static operations
 * iv)  isLeaf -> final, isReadOnly/isQuery -> const
 * What needs some work:
 * i)   templates are not yet supported
 * ii)  testing testing testing
 *
 * Repository: tbd
 * Generated:  2013-03-23 17:10:17
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */


#include "dataModel/CommParams.hpp"
// Start of user code for includes
#include <string>
// End of user code

/**
 * @generated with Eclipse/Acceleo
 *  
 */

namespace dataModel
{

// Start of user code implementation of constructors/destructor


// CTOR
CommParams::CommParams(
	)
	
{ }

// DTOR
CommParams::~CommParams()
{ }

CommParams::CommParams(const CommParams &_o)
: balance(_o.balance)
, email(_o.email)
, phones(_o.phones)
{ }

CommParams & CommParams::operator=(const CommParams &_o)
{
 	this->balance = _o.balance;
 	this->email = _o.email;
 	this->phones = _o.phones;
	return *this;
}

bool CommParams::operator==(const CommParams &_o) const
{
	bool res = false;
	res = (this->balance==_o.balance);
	if (! res) return res;
	res = (this->email==_o.email);
	if (! res) return res;
	res = (this->phones==_o.phones);
	if (! res) return res;
	return true;
}

void CommParams::swap(CommParams &_o) throw()
{
	double _t_balance = this->balance;
 	this->balance = _o.balance;
	_o.balance = _t_balance;
	std::swap(this->email, _o.email);
	std::swap(this->phones, _o.phones);
}

// End of user code

// * * * *  O P E R A T I O N S  * * * *



// * * * *  A C C E S S O R S  * * * *
/**
 * The getter getEmail.
 * @generated
 */
std::string CommParams::getEmail() const
{
	return this->email;
}

/**
 * The setter setEmail.
 * @generated
 */
void CommParams::setEmail(const std::string &p_Email) 
{
	this->email = p_Email;
}

/**
 * The getter getPhones.
 * @generated
 */
std::vector<std::string> CommParams::getPhones() const
{
	return this->phones;
}

/**
 * The setter setPhones.
 * @generated
 */
void CommParams::setPhones(const std::vector<std::string> &p_Phones) 
{
	this->phones = p_Phones;
}




void swap (CommParams & o1, CommParams & o2) throw ()
{
	o1.swap (o2);
}

} // namespace dataModel

namespace std {
	template <>
  	void swap (dataModel::CommParams & o1, dataModel::CommParams & o2) throw ()
  	{
  		o1.swap (o2);
	}
} // in std

